package javaTest02.utils;


import java.util.HashSet;

public class Person implements SettablePerson {
    private String name;
    private String gender;
    private int age;
    private double weight;
    private double height;
    private String address;

    public Person(){}

    public Person(String name, String gender, int age, double weight, double height, String address) {
        setName(name);
        setGender(gender);
        setAge(age);
        setWeight(weight);
        setHeight(height);
        setAddress(address);
    }

    public void work(){
        System.out.println("上班");
    }

    public void sleep(){
        System.out.println("睡觉");
    }

    public void speak(){
        System.out.println("说话");
    }

    public void introduceSelf() {
        System.out.println(
                "名字" + name + '\n' +
                "性别" + gender + '\n' +
                "年龄" + age + '\n' +
                "体重" + weight + '\n' +
                "身高" + height + '\n' +
                "地址" + address + '\n'
                );
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    @Override
    public void setAddress(String address) {

    }

    public String getAddress() {
        return address;
    }

    public void wyh(String address) {
        this.address = address;
    }

}
